<?php
 @require_once("toubu.php");
$carid=$_GET["carid"];
$userid=$_GET["userid"];
//判断删除
$sql="DELETE from guccicar where id= $carid and userid = $userid";
mysql_query($sql);
$count = mysql_affected_rows();//  .....没有参数....获取受影响行数
$obj=array();
if($count>0){
$obj["code"]=1;
$obj["msg"]="删除成功";
}else{
$obj["code"]=0;
$obj["msg"]="删除失败";
}  
echo json_encode($obj);